package com.deng.heney.service.impl;

import com.deng.heney.entity.User;
import com.deng.heney.mapper.UserMapper;
import com.deng.heney.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: dengmeng
 * @date: 2024/9/7 11:49
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public void insertUser(User user) {
        userMapper.insert(user);
    }

    @Override
    public List<User> selectAll(User user) {
        List<User> userList = userMapper.selectAll(user);
        return userList;
    }
}
